package com.zyl.Ecs.auth.service;

import com.github.yulichang.base.MPJBaseService;
import com.zyl.Ecs.common.domain.auth.bean.Account;
import com.zyl.Ecs.common.domain.auth.ext.AccountExt;
import com.zyl.Ecs.common.exception.EcsException;

/**
* @version v1.0
* @Package: com.zyl.Ecs.auth.service
* @ClassName: AccountService
* @Description 针对表【base_account】的数据库操作Service实现
* @Author 翟玉龙
* @Date 2024-12-04 16:36:41
*/

public interface AuthService extends MPJBaseService<Account> {

    /**
     * 登录
     * @param username 用户名
     * @param password 密码
     * @return {@link String }
     * @throws EcsException 异常
     */
    String login(String username, String password) throws EcsException;

    /**
     * 用户信息
     * @param token token数据
     * @return {@link AccountExt }
     * @throws EcsException 异常
     */
    AccountExt userInfo(String token) throws EcsException;
}
